package common {
    
    public class URL {
        
        //------------------------------------------------------------
        //
        // class variables
        //
        //------------------------------------------------------------

        //------------------------------
        // debug
        //------------------------------

        /**
         * if debug is true, the local test url would be used,
         * if debug is false, the real url would be used.
         * @default false
         */
        private static var _debug:Boolean;

        public static function get debug():Boolean {
            return _debug;
        }

        public static function set debug(debug:Boolean):void {
            _debug = debug;
        }
        
        //------------------------------
        // getSquareDataUrl
        //------------------------------

        /**
         * url of square data
         */
        public static function get GET_SQUARE_DATA_URL():String {
            return (debug) ? "testdata/squareData.xml"
                           : "/wustweb/process/locationlist";
        }
        
        //------------------------------
        // getCompanyInfoUrl
        //------------------------------

        /**
         * url of company info
         */
        public static function get GET_COMPANY_INFO_URL():String {
            return (debug) ? "testdata/companyInfo.xml"
                           : "/wustweb/process/getcompanyhireinfo";
        }
        
        //------------------------------
        // getApproveInfoUrl
        //------------------------------

        /**
         * url of approve info
         */
        public static function get GET_APPROVE_INFO_URL():String {
            return (debug) ? "testdata/approveInfo.xml"
                           : "/wustweb/process/registrationlist";
        }
        
        //------------------------------
        // setApproveInfoUrl
        //------------------------------

        /**
         * url of setting approve info
         */
        public static function get SET_APPROVE_INFO_URL():String {
            return (debug) ? "testdata/response.xml"
                           : "/wustweb/process/assigncompanylocation";
        }
        
        //------------------------------
        // regCompanyUrl
        //------------------------------

        /**
         * url of register company info
         */
        public static function get REG_COMPANY_INFO_URL():String {
            return (debug) ? "testdata/response.xml"
                           : "/wustweb/process/registercompanylocation";
        }
        
        //------------------------------
        // loginUrl
        //------------------------------
        
        /**
         * url of login
         */
        public static function get LOGIN_URL():String {
            return (debug) ? "testdata/loginresponse.xml"
                           : "/wustweb/process/login";
        }
        
        //------------------------------------------------------------
        //
        // constructor
        //
        //------------------------------------------------------------
        
        public function URL() {
            
        }

    }
}